﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SalaryKOG
{
    public class XMLManager
    {
        public static DataTable ReadToXML(string filename)
        {
            DataSet dts = new DataSet();
            dts.ReadXml(filename);
            DataTable dataTablePhone = new DataTable();
            try
            {
                dataTablePhone = dts.Tables[0];
            }
            catch (Exception)
            {

                return dataTablePhone;
            }

            return dataTablePhone;
        }
    }

}
